home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / db / DBSearchArg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  631 b   |  39 lines

  1. #ifndef _DBSEARCHARG_H_
  2. #define _DBSEARCHARG_H_
  3.  
  4. #include <objc/Object.h>
  5.  
  6. #define CMP_EQUAL        0x00
  7. #define CMP_NOTEQUAL     0x01
  8. #define CMP_LESS         0x02
  9. #define CMP_GREATER      0x03
  10. #define CMP_LESSEQUAL    0x04
  11. #define CMP_GREATEREQUAL 0x05
  12.  
  13. @interface DBSearchArg : Object
  14. {
  15.   id    field;
  16.   char  operator;
  17.   char *operand;
  18.  
  19.   DBSearchArg *next;
  20. }
  21.  
  22. - initForField: aField
  23.       operator: (char) anOperator
  24.    withOperand: (char *) anOperand;
  25. - free;
  26.  
  27. - add: anArg;
  28. - next;
  29.  
  30. -field;
  31. -(char) operator;
  32. -(char *) operand;
  33.  
  34. -(BOOL) matchesCurrentRecordInFile: aFile;
  35.  
  36. @end
  37.  
  38. #endif
  39.